/* 
 * Template Name: 钢铁荧幕 (Iron Screen)
 * Author: Manus AI
 * Description: Industrial metal style, thick borders, large titles, metallic gradients.
 */

:root {
    --is-bg-color: #ECEFF1;
    --is-text-color: #263238;
    --is-primary-color: #B0BEC5;
    --is-accent-color: #FF6D00;
    --is-border-color: #78909C;
    --is-metal-gradient: linear-gradient(135deg, #CFD8DC 0%, #90A4AE 50%, #607D8B 100%);
    --is-metal-gradient-hover: linear-gradient(135deg, #ECEFF1 0%, #B0BEC5 50%, #78909C 100%);
    --is-font-family: 'Impact', 'Arial Black', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--is-bg-color);
    color: var(--is-text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--is-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--is-accent-color);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--is-font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Layout Container */
.is-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Top toolbar style nav */
.is-header {
    background: var(--is-metal-gradient);
    border-bottom: 4px solid var(--is-border-color);
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.is-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.is-logo img {
    height: 50px;
    display: block;
    border: 2px solid var(--is-text-color);
}

.is-search-form {
    display: flex;
    border: 3px solid var(--is-text-color);
    background: #fff;
}

.is-search-input {
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    outline: none;
    width: 250px;
}

.is-search-btn {
    background: var(--is-accent-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-family: var(--is-font-family);
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.is-search-btn:hover {
    background: #E65100;
}

.is-nav-menu {
    display: flex;
    gap: 15px;
}

.is-nav-item {
    font-family: var(--is-font-family);
    font-size: 18px;
    padding: 5px 10px;
    border: 2px solid transparent;
}

.is-nav-item:hover {
    border-color: var(--is-text-color);
    background: rgba(255,255,255,0.2);
}

/* Footer */
.is-footer {
    background: #263238;
    color: #B0BEC5;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 5px solid var(--is-accent-color);
}

.is-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.is-footer-title {
    color: #fff;
    border-bottom: 2px solid var(--is-accent-color);
    padding-bottom: 10px;
}

.is-footer-links a {
    color: #B0BEC5;
    display: block;
    margin-bottom: 8px;
}

.is-footer-links a:hover {
    color: var(--is-accent-color);
    padding-left: 5px;
}

.is-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #37474F;
    font-size: 14px;
}

/* Sidebar */
.is-sidebar {
    background: #fff;
    border: 3px solid var(--is-border-color);
    padding: 20px;
    box-shadow: 4px 4px 0 var(--is-border-color);
    margin-bottom: 30px;
}

.is-sidebar-title {
    background: var(--is-metal-gradient);
    padding: 10px;
    border: 2px solid var(--is-text-color);
    text-align: center;
    margin-bottom: 15px;
}

.is-sidebar-list li {
    border-bottom: 1px dashed var(--is-border-color);
    padding: 10px 0;
}

.is-sidebar-list li:last-child {
    border-bottom: none;
}

/* Home Layout - Magazine Mixed */
.is-home-row1 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.is-home-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.is-home-row3 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

/* Card Style */
.is-card {
    background: #fff;
    border: 3px solid var(--is-text-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.is-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 var(--is-accent-color);
}

.is-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--is-text-color);
}

.is-card-body {
    padding: 15px;
}

.is-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-card-meta {
    font-size: 12px;
    color: #546E7A;
    display: flex;
    justify-content: space-between;
}

/* List Page Layout */
.is-list-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.is-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Content Page Layout */
.is-show-layout {
    margin: 30px 0;
}

.is-article {
    background: #fff;
    border: 4px solid var(--is-text-color);
    padding: 30px;
    box-shadow: 8px 8px 0 var(--is-border-color);
}

.is-article-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 4px double var(--is-text-color);
    padding-bottom: 20px;
}

.is-article-title {
    font-size: 32px;
    color: var(--is-accent-color);
    text-shadow: 1px 1px 0 #000;
}

.is-article-meta {
    background: var(--is-metal-gradient);
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid var(--is-text-color);
    font-weight: bold;
}

.is-article-content {
    font-size: 16px;
    line-height: 1.8;
}

.is-article-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--is-border-color);
    margin: 15px 0;
}

.is-article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--is-border-color);
}

.is-article-nav a {
    background: var(--is-metal-gradient);
    padding: 10px 20px;
    border: 2px solid var(--is-text-color);
    font-family: var(--is-font-family);
}

.is-article-nav a:hover {
    background: var(--is-metal-gradient-hover);
}

/* Breadcrumb */
.is-breadcrumb {
    background: var(--is-text-color);
    color: #fff;
    padding: 10px 20px;
    margin: 20px 0;
    font-family: var(--is-font-family);
    letter-spacing: 1px;
}

.is-breadcrumb a {
    color: var(--is-accent-color);
}

/* Pagination */
.is-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.is-pagination a, .is-pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 2px solid var(--is-text-color);
    font-family: var(--is-font-family);
    font-size: 16px;
}

.is-pagination a:hover, .is-pagination .current {
    background: var(--is-accent-color);
    color: #fff;
}

/* Section Title */
.is-section-title {
    font-size: 24px;
    border-left: 8px solid var(--is-accent-color);
    padding-left: 15px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #CFD8DC, transparent);
    padding: 10px 15px;
}


/* ========== 差异化特效 ========== */
/*
 * 模板: 钢铁荧幕 (Iron Screen)
 * 前缀: is-
 * 风格: 银灰亮橙工业系
 */

/* ====================================
 * Keyframes 动画
 * ==================================== */

/* 1. 齿轮旋转动画 */
@keyframes is-gear-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 2. 金属光泽扫过动画 */
@keyframes is-metal-shine {
  0% {
    transform: translateX(-110%) skewX(-30deg);
  }
  100% {
    transform: translateX(110%) skewX(-30deg);
  }
}

/* 3. 火花飞溅动画 */
@keyframes is-spark-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(40px, -40px) scale(0.5);
  }
}

/* ====================================
 * 交互 & 增强效果 (Hover/Transition)
 * ==================================== */

/* 1. 卡片hover钢铁压印效果 */
.is-card {
  transition: all 0.3s ease-in-out;
  background-color: #e0e5ec; /* 亮灰色背景 */
}

.is-card:hover {
  box-shadow: inset 5px 5px 10px #a8b0c1, 
              inset -5px -5px 10px #ffffff;
  transform: translateY(2px);
}

/* 2. 按钮hover铆钉弹出效果 */
.is-button {
  position: relative;
  border: 2px solid #4a4a4a;
  background-color: #6c757d;
  color: #f5f5f5;
  padding: 10px 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.is-button::before, .is-button::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #a8b0c1;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.is-button::before {
  top: 4px;
  left: 4px;
}

.is-button::after {
  bottom: 4px;
  right: 4px;
}

.is-button:hover {
  background-color: #ff6600; /* 亮橙色 */
  border-color: #ff8533;
}

.is-button:hover::before {
  transform: scale(1.5);
  box-shadow: 0 0 5px #fff;
}

.is-button:hover::after {
  transform: scale(1.5);
  box-shadow: 0 0 5px #fff;
}

/* 3. 标题金属光泽扫过效果 */
.is-title-shine {
  position: relative;
  overflow: hidden;
  color: #333;
}

.is-title-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: is-metal-shine 3s infinite linear;
}

/* 4. 导航链接hover下划线效果 */
.is-nav-link {
  position: relative;
  padding-bottom: 5px;
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.is-nav-link:hover {
  color: #ff6600;
}

.is-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff6600;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.is-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 5. 图片hover工业风边框和缩放 */
.is-image-container {
  overflow: hidden;
  position: relative;
  border: 4px solid #333;
  box-shadow: 0 0 0 2px #555;
}

.is-image-container img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.is-image-container:hover img {
  transform: scale(1.1);
}

/* 6. 标签hover背景色和文字颜色变化 */
.is-tag {
  display: inline-block;
  padding: 4px 8px;
  background-color: #ccc;
  color: #333;
  border-radius: 2px;
  transition: background-color 0.3s, color 0.3s;
}

.is-tag:hover {
  background-color: #ff6600;
  color: #fff;
}
